package com.woniuxy.search;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Mapping;

import java.math.BigDecimal;

/**
 * @author LinKe
 * @version 1.0
 * @date 2021/11/11 1:05
 * elasticsearch搜索测试用  实体类
 */
@ToString
@Getter
@Setter
@Document(indexName = "goods")
@Mapping(mappingPath = "es-logging.json")
public class Goods {
    @Id
    private int id;
/*
    @Filed(name = "name",index = true, stored = true,analyzer = "ik_smart")
    private String name;
    @Filed(name = "price",index = false, stored = true)
    private BigDecimal price;
    @Filed(name = "description",index = false, stored = true)
    private String description;
*/

}
